//
//  JSMLeavingHeaderShowCityModel.m
//  TakeYouTourTogether
//
//  Created by dllo on 15/11/30.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMLeavingHeaderShowCityModel.h"

@implementation JSMLeavingHeaderShowCityModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.cityId = value;
    }
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.cover_route_map_cover = [aDecoder decodeObjectForKey:@"cover_route_map_cover"];
        self.cityId = [aDecoder decodeObjectForKey:@"cityId"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.cover_route_map_cover forKey:@"cover_route_map_cover"];
    [aCoder encodeObject:self.cityId forKey:@"cityId"];
}

@end
